//
//  UIColor+Category.swift
//  DSWeibo
//
//  Created by J on 16/5/3.
//  Copyright © 2016年 J. All rights reserved.
//

import UIKit



extension UIColor{
    
    class func randomColor() -> UIColor {
      
        return UIColor(red: randomNumber(), green: randomNumber(), blue: randomNumber(), alpha: 1.0)
        
    }
    
    
    class func randomNumber() -> CGFloat {
    
     return CGFloat(arc4random_uniform(256)) / CGFloat(255.0)//0 ~ 255
    }
    
}